package com.example.beautymakeup.service;

import com.example.beautymakeup.domain.PageBean;
import com.example.beautymakeup.pojo.Shop;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface ShopService {
    Shop getByUid(String token ,int uid) throws Exception;

    PageBean<Shop> get(String token, int page, int size) throws Exception;
    //    管理端获取上架的商品信息
    PageBean<Shop> getAll(String token, int page,  int size) throws Exception;

    PageBean<Shop> getByTypeId(String token,int classifyId) throws Exception;

    boolean update(String token,Shop shop) throws Exception;

    boolean updateType(String token,Shop shop) throws Exception;

    boolean add(String token,Shop shop) throws Exception;

    boolean ban(String token,Shop shop) throws Exception;

    boolean delete(String token,Shop shop) throws Exception;
    //    设置热门
    boolean hot(String token,Shop shop) throws Exception;

    //     获取热门的shop
    PageBean<Shop> getHotShop(String token,int hotId, int page, int size) throws Exception;

    PageBean<Shop> getTypeShop(String token,int classifyId, int page, int size) throws Exception;

    PageBean<Shop> search(String token,String shopName, int page, int size) throws Exception;

    int getShopCount(String token,int uid) throws Exception;
}
